package jsyf.oa.dao.doc;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.doc.Main2CompanyEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2018/4/20.
 */
@Repository
public class Main2CompanyDao extends BaseDao {

    public Main2CompanyDao() {

        this.iBaseEntity = new Main2CompanyEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, Main2CompanyEntity.class);
    }
}